﻿using DomainTaskTrain;

Console.WriteLine("Hello, World!");
Console.WriteLine($"Current Thread: {Thread.GetCurrentProcessorId()}");
await DomainTask.Run(() => Console.WriteLine($"Current First Thread: {Thread.GetCurrentProcessorId()}"));
DomainTask.Delay(TimeSpan.FromSeconds(5)).Wait();
DomainTask.Run(() => Console.WriteLine($"Current Second Thread: {Thread.GetCurrentProcessorId()}"));
// DomainTask.Run(() => Console.WriteLine($"Current First Thread: {Thread.GetCurrentProcessorId()}"))
//     .ContinueWith(() => Console.WriteLine($"Current Second Thread: {Thread.GetCurrentProcessorId()}"));
Console.ReadLine();
